package com.example.bootdemo.redis.config;

import com.alibaba.fastjson.JSON;
import com.example.bootdemo.redis.model.TaskSynData;
import org.springframework.stereotype.Component;

@Component
public class RedisReceiver {

    public void receiveMessage(TaskSynData taskSynData ) {

        System.out.println("收到消息为：" + taskSynData);
        System.out.println("收到消息为：" + JSON.toJSONString(taskSynData));
    }
}


